package languages;

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %><%@taglib uri="http://www.icesoft.com/icefaces/component" prefix="ice" %>
<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title>New Languages</title>
            <link rel="stylesheet" type="text/css" href="/WebIDE-war/faces/jsfcrud.css" />
        </head>
        <body>
            <ice:panelGroup id="messagePanel" layout="block">
                <ice:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </ice:panelGroup>
            <h1>New Languages</h1>
            <ice:form>
                <ice:inputHidden id="validateCreateField" validator="#{languages.validateCreate}" value="value"/>
                <ice:panelGrid columns="2">
                    <ice:outputText value="Id:"/>
                    <ice:inputText id="id" value="#{languages.languages.id}" title="Id" required="true" requiredMessage="The id field is required." />
                    <ice:outputText value="Name:"/>
                    <ice:inputText id="name" value="#{languages.languages.name}" title="Name" required="true" requiredMessage="The name field is required." />
                    <ice:outputText value="ProjectsCollection:"/>
                    <ice:selectManyListbox id="projectsCollection" value="#{languages.languages.jsfcrud_transform[jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method.collectionToArray][jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method.arrayToList].projectsCollection}" title="ProjectsCollection" size="6" converter="#{projects.converter}" >
                        <f:selectItems value="#{projects.projectsItemsAvailableSelectMany}"/>
                    </ice:selectManyListbox>
                </ice:panelGrid>
                <br />
                <ice:commandLink action="#{languages.create}" value="Create"/>
                <br />
                <br />
                <ice:commandLink action="#{languages.listSetup}" value="Show All Languages Items" immediate="true"/>
                <br />
                <ice:commandLink value="Index" action="welcome" immediate="true" />
            </ice:form>
        </body>
    </html>
</f:view>
